package quartz;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

/**
 * Created by cdxuhongya on 2016/10/12.
 */
public class QuartzJob2 implements Job {


    public void execute(JobExecutionContext context) throws JobExecutionException {

        for (int i = 0; i < 10; i++) {
            System.out.println("job222222222222 is running"  + i + "name:");
            try {
                Thread.sleep(100);
            }catch (Exception e){
                System.out.println("error");
                throw  new RuntimeException("22");
            }
        }
    }
}
